const mxPicker = require('../../behaviors/form/mx-picker');
import {
  getDicByEnumName
} from '../../utils/tools';
const mxObserverPicker = require('../../behaviors/form/mx-observer-picker');

Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多 slot 支持
  },
  behaviors: [mxPicker, mxObserverPicker],
  properties: {
    enumName: {
      type: String,
      observer(enumName) {
        const columns = getDicByEnumName(enumName);
        this.setData({
          columns
        });
      }
    },
  },
})